/**
 * @File   : store.js
 * @Author : xue.xiaoBing
 * @Date   : 2020/11/4
 * @Desc   : redux 对象管理
 **/

import thunk from 'redux-thunk';
import logger from 'redux-logger';
import {createStore, applyMiddleware} from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

import rootReducer from './reducers'

export default createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk, logger)))